<div class="box">
	<div class="box-header well">
		<h2><i class="icon-info-sign"></i> 模板</h2>
		<div class="box-icon">
			<a href="/htmltemplate" class="btn btn-round" title="更多"><i class="icon-plus"></i></a>
		</div>
	</div>
	<div class="box-content">
		<?php if(!empty($htmlTemplates)): ?>
			<?php 
				$showImgs = array_slice($htmlTemplates, 0, 6); 
				$showLinks = array_slice($htmlTemplates, 6);
			?>
			<?php $showImgs = array_chunk($showImgs, 3, true); ?>
			<?php foreach($showImgs as $line => $linehts): ?>
				<div class="row-fluid">		<!-- sortable -->
					<?php foreach($linehts as $k => $ht): ?>
						<div class="top-block text-center span4 son-noMargin">
							<a class="thumbnail" href="<?php echo url('htmltemplate/preview', array('id' => $ht['id'])); ?>" target="_blank">		<!-- Hspace3 -->
								<img class="h120MaxWparent" alt="<?php echo $ht['name']; ?>" src="<?php echo $htmltemp_url . $ht['root_foldername'] . '/' . $ht['thumb_big']; ?>" />
							</a>
							<div><?php echo $ht['name']; ?></div>
						</div>
					<?php endforeach; ?>
				</div>
			<?php endforeach; ?>
			
			<hr class="noMarginT" />
			
			<div class="row-fluid text-center">
				<ul class="unstyled">	<!--  posterity-a_style1 -->
				<?php foreach($showLinks as $k => $ht): ?>
					<li class="span4 <?php echo ($k%3 == 0)? 'noMarginL' : ''; ?>">
						<a href="<?php echo url('htmltemplate/preview', array('id' => $ht['id'])); ?>" target="_blank">
							<?php echo $ht['name']; ?>
						</a>
					</li>
				<?php endforeach; ?>
				</ul>
			</div>
		<?php else: ?>	
			<div class="alert alert-info">
				暂时没有数据
			</div>
		<?php endif; ?>
		<div class="clearfix"></div>
	</div>
</div>